package cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseengineeringdetail;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 工程采购计划明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PurchaseEngineeringDetailRespVO {

    @Schema(description = "采购详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1457")
    @ExcelProperty("采购详情ID")
    private Long id;

    @Schema(description = "采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17837")
    @ExcelProperty("采购计划ID")
    private Long planId;

    @Schema(description = "采购计划编号(系统自动生成)")
    private String planNo;

    @Schema(description = "采购类型SERVICE/EQUIPMENT/NGINEERING/MATERIAL/DIRECT/MINOR", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "采购类型SERVICE/EQUIPMENT/NGINEERING/MATERIAL/DIRECT/MINOR", converter = DictConvert.class)
    @DictFormat("purchase_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String purchaseType;

    @Schema(description = "采购内容(详细)")
    @ExcelProperty("采购内容(详细)")
    private String purchaseContent;

    @Schema(description = "预估采购数量")
    @ExcelProperty("预估采购数量")
    private Integer estimatedQuantity;

    @Schema(description = "总价限价(单位：万元，人民币)")
    @ExcelProperty("总价限价(单位：万元，人民币)")
    private BigDecimal totalPriceLimit;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}